package cn.kongwg.demo06;

/**
 * @author kongwg
 * @create 2021-06-24 22:51
 */
public class ClassB extends ClassA {
    private String a = "b";
    public ClassB() {
        System.out.println("hellob");

    }

    {
        System.out.println("i m class b");
    }

    static {
        System.out.println("static b");
    }

    public static void main(String[] args) {
        ClassA a = new ClassB();
        System.out.println(a.getName());
    }
}
